package com.yf.dao;

import com.yf.bean.HistoryAnswer;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public class HistoryAnswerDao extends BaseDao{
    public int addRecord(List<HistoryAnswer> bean) {
        if (bean.size() == 0) {
            return 0;
        }
        return sessionTemplate.insert(getStatement("addRecord"), bean);
    }

    public List<HistoryAnswer> getByUid(Map<String, Object> params) {
        return sessionTemplate.selectList(getStatement("getByUid"), params);
    }
}
